// pull some values of stocks from yahoo

function PullStocks()
{
	var xhr;
	
	// this is for cross browser correctness
	// this check is for non IE
	if (window.XMLHttpRequest)
	{
		xhr = new XMLHttpRequest();
		
	} // end if
	else if (window.ActiveXObject)
	{
		xhr = new ActiveXObject("Microsoft.XMLHTTP");
		
	} // end else
			
	// create the Ajax request
	xhr.open("GET", "http://www.reddit.com/r/steroids/comments/1jbp8l/long_a_pin_story/cbdafjp", true);
	xhr.send(null);

	// set the state change callback function
	xhr.onreadystatechange = function OnReadyStateChangeCallback() {

		console.log ("state = " + xhr.readyState);
		console.log ("resp = " + xhr.status);
		console.log ("resp txt = " + xhr.responseText);
	
	} ();


} // end function


// this is the function that gets called back when the state changes
function OnReadyStateChangeCallback1()
{
	console.log ("state = " + xhr.readyState);
	console.log ("resp = " + xhr.status);
	console.log ("resp txt = " + xhr.responseText);
	
	
	
	
	
	
} // end function